﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Permission.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Teenio.Category.Permission" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelUserPermision" runat="server" UpdateMode="Conditional" RenderMode="Inline">    
    <contenttemplate>
		<table cellspacing="1" cellpadding="0" width="100%" border="0" class="content">
			<tbody>
			    <tr>			       
                    <tr>
						<td colspan="2" class="header1" height="18">
							<asp:Label ID="lblCommandName" runat="server"></asp:Label></td>
					</tr>
			    </tr>
				<tr>
					<td valign="top" width="60%" class="postheader">
					    <asp:Repeater ID="dtgUsers" runat="server" OnItemCommand="dtgUsers_ItemCommand">
                        <HeaderTemplate>
                            <table class="content" cellspacing="1" cellpadding="0" width="100%">                                
                                <tr>
                                    <td class="header2" align="left" width="40%" height="18">
                                        <NS:Label ID="Label1" runat="server" LocalizedPage="TABLECAPTION" LocalizedTag="NAME" /></td>
                                    <td class="header2" align="left" width="50%" height="18">
                                        <NS:Label ID="Label2" runat="server" LocalizedPage="TABLECAPTION" LocalizedTag="EMAIL" /></td>                                   
                                    <td class="header2" align="center" width="10%" height="18">
                                        <NS:Label ID="Label3" runat="server" LocalizedPage="TABLECAPTION" LocalizedTag="ACTION" /></td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                                <tr>
                                    <td class="post" align="left">
                                        <asp:LinkButton ID="NameEdit" runat="server" CommandName="roles" CommandArgument='<%# Eval("UserID") + "/" + Eval("Username") %>'
                                            Text='<%# Eval("Username") %>' /></td>
                                    <td class="post" align="left">
                                        <%# Eval("Email")%></td>
                                    <td class="post" align="center">
                                        <asp:Button ID="btnZonePermision" runat="server" CommandArgument='<%# Eval("UserID") + "/" + Eval("Username") %>' CommandName="roles" CssClass="pbutton" Text="Phân quyền" Width="85px" /></td>
                                </tr>
                        </ItemTemplate>
                        <FooterTemplate>                               
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>						
					</td>					
					<td class="postheader" valign="top">
						<table cellspacing="1" cellpadding="0" width="100%" border="0" class="content">
							<tbody>								    	
							    <tr>
						            <td class="header2" height="18">
						                <NS:Label ID="Label4" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="USERNAME" />&nbsp;<asp:Label ID="lblUsername" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label><asp:TextBox ID="txtUserID" Width="39px" runat="server" Visible="False" Enabled="False"></asp:TextBox>
						            </td>
						        </tr>								
								<tr>
									<td class="postheader">
										<asp:RadioButtonList ID="rdoPermisions"  Width="100%" CssClass="Button" runat="server" RepeatDirection="Horizontal">
											<asp:ListItem Value="2">Quản l&#253;</asp:ListItem>
											<asp:ListItem Value="1">Xuất bản tin</asp:ListItem>
										</asp:RadioButtonList></td>
								</tr>							
								<tr>
									<td class="postheader">                                        
										<NS:Label ID="Label6" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="PERMISSION" /></td>
								</tr>								
								<tr>
									<td class="postheader">
										<asp:ListBox ID="lstZones" Width="100%" runat="server" SelectionMode="Multiple" Rows="15">
										</asp:ListBox></td>
								</tr>	
                                <tr>
                                    <td class="postfooter" height="18">
                                        <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                                    </td>
                                </tr>							
								<tr>
									<td class="postfooter" colspan="2" valign="middle" align="center">
										<NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE" ID="cmdUpdate" OnClick="cmdUpdate_Click" Width="88px" CssClass="pbutton"
											runat="server" />
										<NS:Button LocalizedPage="ACTION" LocalizedTag="RESET" ID="cmdCancel" OnClick="cmdCancel_Click" Width="88px" CssClass="pbutton"
											runat="server" />
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
			</tbody>
		</table>
</contenttemplate>
</asp:UpdatePanel>